package pe.edu.cibertec.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class CompaniaPK implements Serializable {

    @Column(name = "countrycode")
    private String codigoPais;
    @Column(name = "companycode")
    private String codigoCompania;

    public CompaniaPK() {
    }

    public CompaniaPK(String codigoPais, String codigoCompania) {
        this.codigoPais = codigoPais;
        this.codigoCompania = codigoCompania;
    }

    public String getCodigoPai() {
        return codigoPais;
    }

    public void setCodigoPai(String codigoPai) {
        this.codigoPais = codigoPai;
    }

    public String getCodigoCompania() {
        return codigoCompania;
    }

    public void setCodigoCompania(String codigoCompania) {
        this.codigoCompania = codigoCompania;
    }

    @Override
    public String toString() {
        return "CompaniaPK{" + "codigoPai=" + codigoPais + ", codigoCompania=" + codigoCompania + '}';
    }
}
